<template>
	<view>

		<u-popup :show="show" @close="close" @open="open" mode="center" bgColor="transparent">
			<view class="popup-box">
				<view style="width: 600rpx;height: auto;">
					<view class="popup-top">
						<view class="popup-title">卖家信息</view>
						<view class="close-btn" @click="close()">
							<image src="/static/icon-images/close.png" mode="widthFix"></image>
						</view>
					</view>

					<view class="user-box">
						<image class="user-avar" src="/static/public-images/user-avar.png"></image>
						<view class="user-msg">
							<view class="user-name">星际宇航员</view>
							<view class="user-id">
								<view class="user-id">ID:123456</view>
								<image src="/static/public-images/copy.png"></image>
							</view>
						</view>
					</view>

					<view class="card msg-card">
						<view class="msg-item">
							<view class="msg-tit">信用评级</view>
							<view style="display: flex;align-items: center;">
								<u-icon name="star-fill" color="#facc15" size="20"></u-icon>
								<view class="msg-text">4.8</view>
							</view>
						</view>
						<view class="msg-item">
							<view class="msg-tit">交易次数</view>
							<view style="display: flex;align-items: center;">
								<!-- <u-icon name="star-fill" color="#facc15" size="20"></u-icon> -->
								<view class="msg-text">128</view>
							</view>
						</view>
					</view>

					<view class="primary-btn" @click="close()">确认</view>


				</view>
			</view>
		</u-popup>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false,
			};
		},
		methods: {
			open() {
				this.show = true
			},
			close() {
				this.show = false
			}
		}
	}
</script>

<style lang="scss" scoped>
	.popup-box {
		background: linear-gradient(135deg, #0a1a3a 0%, #050a1a 100%);
		border: 1rpx solid rgba(255, 255, 255, 0.15);
		border-radius: 20rpx;
		overflow-y: auto;
		padding: 30rpx;
	}

	.popup-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.popup-title {
		font-weight: 700;
		font-size: 38rpx;
		color: #e2e8f0;
	}

	.close-btn {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 60rpx;
		height: 60rpx;
		border-radius: 50%;
		background: rgba(255, 255, 255, 0.15);

		image {
			display: block;
			width: 28rpx;
			height: 28rpx;
		}
	}

	.flex-sb {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.user-box {
		margin-top: 30rpx;
		display: flex;
		align-items: center;

		.user-avar {
			display: block;
			width: 110rpx;
			height: 110rpx;
			border: 4rpx solid #e5e7eb;
			border-radius: 50%;
		}

		.user-msg {
			margin-left: 20rpx;
			display: flex;
			flex-direction: column;
			gap: 15rpx;

			.user-name {
				font-size: 36rpx;
				font-weight: 700;
				line-height: 1;
				color: #e2e8f0;
			}

			.user-id {
				display: flex;
				align-items: center;
				font-size: 32rpx;
				font-weight: 400;
				line-height: 0.8;
				color: #9ca3af;

				image {
					display: block;
					width: 28rpx;
					height: 28rpx;
					margin-left: 10rpx;
				}
			}
		}
	}


	.msg-card {
		margin-top: 30rpx;
		padding: 10rpx 0;

		.msg-item {
			padding: 10rpx 30rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;

			.msg-tit {
				font-size: 32rpx;
				font-weight: 500;
				line-height: 1;
				color: #9ca3af;
			}

			.msg-text {
				margin-left: 5rpx;
				font-size: 32rpx;
				font-weight: 700;
				line-height: 1;
				color: #fff;
			}
		}
	}

	.primary-btn {
		margin-bottom: 10rpx;
		margin-top: 30rpx;
		background-color: #9a4dff;
		color: white;
		border: none;
		border-radius: 20rpx;
		padding: 24rpx 0;
		width: 100%;
		font-weight: 600;
		font-size: 32rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		transition: all 0.3s ease;
	}
</style>